import request from '@/utils/request';
// 订单列表
export function getOrder(data) {
  return request({
    url: '/OrderShopRest/getOrder',
    method: 'post',
    data
  });
}
// 订单详情{id}
export function getOrderDetail(data) {
  return request({
    url: '/OrderShopRest/getOrderDetail',
    method: 'post',
    data
  });
}
// 订单 修改金额和店铺备注{id,realAmount//订单金额,shopRemarks//店铺备注}
export function update(data) {
  return request({
    url: '/OrderShopRest/update',
    method: 'post',
    data
  });
}
// 订单售后退款  {"rejectedShopId":"退款商户订单ID","orderShopId":"商户订单ID","buyer":"买家","takeover":"买0已收货  1未收货"}
export function getOrderRejected(data) {
  return request({
    url: '/OrderShopRest/getOrderRejected',
    method: 'post',
    data
  });
}
// 订单查看发货信息
export function getExpressinfo(data) {
  return request({
    url: '/OrderShopRest/getExpressinfo',
    method: 'post',
    data
  });
}
// 订单列表发货确认提交
export function orderRestUpdate(data) {
  return request({
    url: '/OrderShopRest/update',
    method: 'post',
    data
  });
}
// 查看退款订单详情
export function getOrderRejectedbyid(data) {
  return request({
    url: '/OrderShopRest/getOrderRejectedbyid',
    method: 'post',
    data
  });
}
// 退款列表商家备注 退款详情拒绝申请 {“rejectedStatus”:”修改订单状态”,“refuseReason”:”拒绝原因”,“shopRemakes”:”备注”,“refuseReasonImage”:”图片”,“rejectedShopId”:””,“shopId”:”店铺id”}
export function updateOrderRejected(data) {
  return request({
    url: '/OrderShopRest/updateOrderRejected',
    method: 'post',
    data
  });
}
// 定金付款修改价格 private String id;private int realAmount;// 订单修改金额;private String shopRemarks;// 店铺备注realFreight修改运费
export function updateperiodization(data) {
  return request({
    url: '/OrderShopRest/updateperiodization',
    method: 'post',
    data
  });
}
